Skip to content

feat(api): enable OpenAPI by default - #46603

Closed
wylswz wants to merge 1 commit into
langgenius:mainfrom
wylswz:feat/openapi-enabled-by-default
Closed

wylswz wants to merge 1 commit into
langgenius:mainfrom
wylswz:feat/openapi-enabled-by-default

Conversation

@wylswz

@wylswz wylswz commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Self-hosted CE did not enable OPENAPI_ENABLED by default, yet the account page still lets users create personal access tokens. Every PAT call then returned 404 because the /openapi/v1 blueprint was not registered. Turn OPENAPI_ENABLED on by default and update the api.defaults comment. Set OPENAPI_ENABLED=false to disable it.

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've verified the change and added or updated tests where meaningful regression risk justifies coverage.
  • I've updated the documentation accordingly.
  • I ran make lint && make type-check (backend) and vp staged (frontend) to appease the lint gods

From Devin

…the box

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@github-actions github-actions Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 86.70% 86.70% 0.00%
Strict coverage 86.36% 86.36% 0.00%
Typed symbols 94,232 94,232 0
Untyped symbols 14,508 14,508 0
Modules 4605 4605 0

@wylswz

wylswz commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by a stacked PR from a branch in langgenius/dify (same change).

@wylswz wylswz closed this Nov 17, 2026
@wylswz wylswz mentioned this pull request Nov 17, 2026
2 of 5 tasks
@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.25%. Comparing base (ff57688) to head (cef5a9a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #46603   +/-   ##
=======================================
  Coverage   90.25%   90.25%           
=======================================
  Files        6438     6438           
  Lines      405460   405460           
  Branches    81528    81528           
=======================================
+ Hits       365961   365968    +7     
+ Misses      33097    33088    -9     
- Partials     6402     6404    +2     
Flag Coverage Δ
api 90.03% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant